package ch3;

import java.util.Scanner;

public class CalcTest2 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		Student s = new Student();
		System.out.println("输入学生姓名：");
		s.name = in.next();
		System.out.println("请输入语文和数学成绩：");
		s.ch = in.nextInt();
		s.math = in.nextInt();
		s.show();
		Calculator c = new Calculator();
		int avg = c.calcAvg2(s);
		System.out.println("算完了：");
		s.show();
		System.out.println("平均分是：" + avg);

	}

}
